package com.chiaching.common.api;

import com.chiaching.common.domain.pojo.CmsSubject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author jiajing.he
 * @date 2021/4/3 10:58
 */
@FeignClient(value = "super-mall-service"/*url = "${api.host}"*/,path = "cms-subject")
public interface CmsSubjectApi {

    @GetMapping("all")
    List<CmsSubject> allCmsSubject();


    @GetMapping("title")
    List<CmsSubject> title(String title);

    @GetMapping("queryById")
    CmsSubject queryById(Long id);

    @GetMapping("getServerInfo")
    String getServerInfo();
}
